import axios from '../http/axios'

export default {
    //---------------------------------获取班级信息--------------------------
    
    getClasses(params){
        return axios({
            url:'/classes/getClasses',
            method:'GET',
            params
            
        })
    },

    //----------------------------------新增班级信息----------------------------
    addClasses(data){
        return axios({
            url:'/classes/addClasses',
            method:'POST',
            data
        })
    },
    //----------------------------------删除班级信息------------------------------
    deleteClasses(_id){
        return axios({
            url:'/classes/deleteClasses',
            method:'DELETE',
            data:{
                _id
            }
        })
    },
    //---------------------------------根据专业 _id 获取班级------------------------
    getClassesBySubjectsId(subjectsId){
        return axios({
            url:'/classes/getClassesBySubjectsId',
            method:'GET',
            params:{
                subjectsId
            }
        })
    },
}






























